package com.xiaoxin.project.system.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoxin.framework.web.domain.BaseEntity;

import java.util.List;

/**
 * 订单对象 tb_order
 *
 * @author ZhangXX
 */
@TableName(value = "sys_order")
public class SysOrder {
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    @TableField(value = "order_id")
    private Long orderId;

    /** 用户编号 */
    @TableField(value = "user_id")
    private Long userId;

    /** 状态 */
    @TableField(value = "status")
    private String status;

    /** 订单编号 */
    @TableField(value = "order_no")
    private String orderNo;

    @TableField(exist = false)
    private List<SysOrderItem> sysOrderItemList;

    public List<SysOrderItem> getSysOrderItemList() {
        return sysOrderItemList;
    }

    public void setSysOrderItemList(List<SysOrderItem> sysOrderItemList) {
        this.sysOrderItemList = sysOrderItemList;
    }

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }

    @Override
    public String toString() {
        return "SysOrder{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", status='" + status + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", sysOrderItemList=" + sysOrderItemList +
                '}';
    }
}
